package com.leapp.sk.viewdelegate.adapter.examination

import android.view.View
import android.widget.LinearLayout
import com.example.mvp.delegate.BaseAdapterDelegate
import com.leapp.sk.R

/**
 * 入班审核适配器视图托管类
 * @author  chaohaipeng  on 2018/8/14.
 */
class JoinClassExaminationAdapterDelegate :BaseAdapterDelegate(){
    override fun getOptionsMenuId(): Int {
        return 0
    }

    override fun initWidget() {
    }

    override fun onDestroy() {
    }

    override fun initLayoutRes(): Int {
        return R.layout.adapter_join_class_examination
    }

    /**
     * 初始化数据
     */
    fun initData(isNoPassed:Boolean){
        val view = getView<View>(R.id.v_ajce_line)
        val ll_ajce_passed_refuse = getView<LinearLayout>(R.id.ll_ajce_passed_refuse)
        if (isNoPassed){
            view.visibility=View.GONE
            ll_ajce_passed_refuse.visibility=View.GONE
        }else{
            view.visibility=View.VISIBLE
            ll_ajce_passed_refuse.visibility=View.VISIBLE
        }



    }



}